<template>
  <div>
    <h1>首页</h1>
    <Todolist />
  </div>
  <div>
    <h1>评分</h1>
    <Rate :value="score" theme="red" @update-rate="updateRate"> </Rate>
  </div>
</template>

<script setup lang="ts">
import { ref } from "vue";
import Todolist from "../components/Todolist.vue";
import Rate from "../components/Rate.vue";
let score = ref(4);

function updateRate(num) {
  score.value = num;
}
</script>

<style scoped></style>
